﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.Entity.Gen
{
    [SugarTable(TableDescription = "审计属性信息")]
    public class GenAuditProperty
    {
        /// <summary>
        /// 唯一标识
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public Guid Id { get; set; }

        /// <summary>
        /// 关联表
        /// </summary>
        public Guid TableId { get; set; }

        /// <summary>
        /// 字段名称
        /// </summary>
        public string ColumnName { get; set; }

        /// <summary>
        /// 字段描述
        /// </summary>
        [SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
        public string Description { get; set; }

        /// <summary>
        /// 数据库物理类型
        /// </summary>
        [SugarColumn(Length = 20)]
        public string PhysicalType { get; set; }

        /// <summary>
        /// C# 数据类型
        /// </summary>
        [SugarColumn(Length = 20)]
        public string DataType { get; set; }

        /// <summary>
        /// C# 字段
        /// </summary>
        public string FieldName { get; set; }

        /// <summary>
        /// 是否启用审计
        /// </summary>
        public bool Enable { get; set; }
    }
}
